export default async function(options) {
	if(!options.url) return {
		msg: '请传入url参数'
	};
	const [ error, r ] = await uni.request({
		url: options.url,
		method: options.method,
		data: options.data
	});
	return r.data;
}